<!--
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" href="../lib/layui-v2.5.4/css/layui.css" media="all">
<link rel="stylesheet" href="../css/public.css" media="all">
<body>
    <form class="layui-form-item"  action="" lay-filter="departmentForm">
            <div class="layui-form-item" >
                <div class="layui-inline">
                    <label class="layui-form-label">产品名称</label>
                    <div class="layui-input-block" style="width:200px">
                        <input type="text" id="pname" name="pname" lay-verify="pname" autocomplete="off" placeholder="" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">产品产地</label>
                    <div class="layui-input-inline" style="width:200px">
                        <input type="text" id="parea" name="parea" lay-verify="title" autocomplete="off" placeholder=" " class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">产品规格</label>
                    <div class="layui-input-block">
                        <select name="pml" id="pml" >
                            <option value="">&#45;&#45;请选择&#45;&#45;</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">产品类别</label>
                    <div class="layui-input-block" >
                        <select name="sname" id="sname" >
                            <option value="" >&#45;&#45;请选择&#45;&#45;</option>
                        </select>
                    </div>
                </div>

            </div>
        </form>


<script src="../js/layui.js"  ></script>
<script>


    //   getValue属于window对象
    function getValue() {
        var pname = document.getElementById("pname").value;
        var parea = document.getElementById("parea").value;
        let pml = $('#pml option:selected').val();
        let sname = $('#sname option:selected').val();

        var data = {"pname": pname, "parea":parea,"pml":pml,"sname":sname}
        return data;
    }





</script>


</body>
</html>-->
